package com.cloud.mongodb.demo.service;

import com.cloud.mongodb.demo.entity.User;
import com.cloud.mongodb.demo.vo.UserCountGroupBy;
import com.cloud.mongodb.plus.entity.PageResult;
import com.cloud.mongodb.plus.service.IBaseService;

import java.util.List;

public interface IUserService extends IBaseService<User,String> {

    List<User> list();

    PageResult<User> page(User user);

    List<User> findListBySexType(String sexType);

    List<UserCountGroupBy> countUserGroupBySex(Integer sex);

}
